package com.quhaodian.approve.data.dao;


import com.quhaodian.approve.data.entity.Flow;
import com.quhaodian.data.core.CriteriaDao;
import com.quhaodian.data.core.Pagination;
import com.quhaodian.data.core.Updater;

public interface FlowDao extends CriteriaDao<Flow, Long> {
	Pagination getPage(int pageNo, int pageSize);

	Flow findById(Long id);
	
	Flow findByOId(Integer catalog, Long id);

	int deleteForCatalog(Long oid, Integer catalog);

	Flow save(Flow bean);

	Flow updateByUpdater(Updater<Flow> updater);

	Flow deleteById(Long id);
}